package grape.base.rest.message.mapper;

import grape.base.service.message.po.MessageUserState;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.base.rest.message.form.MessageUserStateUpdateForm;
import grape.base.rest.message.form.MessageUserStateListPageForm;
import grape.base.rest.message.vo.MessageUserStateVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 用户消息读取状态表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface MessageUserStateWebMapper extends WebMapper<MessageUserStateVo, MessageUserState> {

    MessageUserState formToPo(MessageUserStateUpdateForm f);
    MessageUserState formToPo(MessageUserStateListPageForm f);
}
